package Operation;//操作包

import mybook.MyBook;
import mybook.MyBookList;

//显示图书类
public class Display implements IOperation{

    @Override
    public void work(MyBookList myBookList) {

        System.out.println("显示图书");

        int count = myBookList.getCount();

        for (int i = 0; i < count; i++) {

           MyBook myBook =  myBookList.getBook(i);

           System.out.println(myBook);
        }

    }
}


